FROM openshift/golang-builder@sha256:4820580c3368f320581eb9e32cf97aeec179a86c5749753a14ed76410a293d83 AS builder
ENV __doozer=update BUILD_RELEASE=202202160023.p0.ge0b5715.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202160023.p0.ge0b5715.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=e0b5715 OS_GIT_VERSION=4.10.0-202202160023.p0.ge0b5715.assembly.stream-e0b5715 SOURCE_DATE_EPOCH=1643203001 SOURCE_GIT_COMMIT=e0b571594762e0f724b1baa298d03b20a06588b4 SOURCE_GIT_TAG=e0b5715 SOURCE_GIT_URL=https://github.com/openshift/openstack-cinder-csi-driver-operator 
WORKDIR /go/src/github.com/openshift/openstack-cinder-csi-driver-operator
COPY . .
RUN make

FROM openshift/ose-base:v4.10.0.20220216.010142
ENV __doozer=update BUILD_RELEASE=202202160023.p0.ge0b5715.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202160023.p0.ge0b5715.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=e0b5715 OS_GIT_VERSION=4.10.0-202202160023.p0.ge0b5715.assembly.stream-e0b5715 SOURCE_DATE_EPOCH=1643203001 SOURCE_GIT_COMMIT=e0b571594762e0f724b1baa298d03b20a06588b4 SOURCE_GIT_TAG=e0b5715 SOURCE_GIT_URL=https://github.com/openshift/openstack-cinder-csi-driver-operator 
COPY --from=builder /go/src/github.com/openshift/openstack-cinder-csi-driver-operator/openstack-cinder-csi-driver-operator /usr/bin/
ENTRYPOINT ["/usr/bin/openstack-cinder-csi-driver-operator"]

LABEL \
        io.k8s.display-name="OpenShift OpenStack Cinder CSI Driver Operator" \
        io.k8s.description="The OpenStack Cinder CSI Driver Operator installs and maintains the OpenStack Cinder CSI Driver on a cluster." \
        name="openshift/ose-openstack-cinder-csi-driver-operator" \
        com.redhat.component="ose-openstack-cinder-csi-driver-operator-container" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        io.openshift.maintainer.component="Storage" \
        release="202202160023.p0.ge0b5715.assembly.stream" \
        io.openshift.build.commit.id="e0b571594762e0f724b1baa298d03b20a06588b4" \
        io.openshift.build.source-location="https://github.com/openshift/openstack-cinder-csi-driver-operator" \
        io.openshift.build.commit.url="https://github.com/openshift/openstack-cinder-csi-driver-operator/commit/e0b571594762e0f724b1baa298d03b20a06588b4" \
        version="v4.10.0"

